package com.herench.bunch.lab.handler;

import com.herench.bunch.commons.annotation.Handler;
import com.herench.bunch.commons.support.AbstractMessageHandler;
import com.herench.bunch.lab.agent.LabOperationAgent;
import com.herench.bunch.lab.convert.LabOperationConvert;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

/**
 * @author luoxiaoming on 18-10-16 上午10:30
 * @email luoxiaoming@herench.com
 */


@Handler(code = "300040", name = "修改检验申请单状态" ,messageConvertClass = LabOperationConvert.class)
public class LabOperationHandler extends AbstractMessageHandler {


    @Autowired
    private LabOperationAgent labOperationAgent;

    @Override
    protected Object proxyInvoke(Object inMessage) throws Exception {
        Map<String,Object> params = (Map<String, Object>) inMessage;
        labOperationAgent.modify(params);
        return params;
    }
}
